package com.lengyu.iottransfer.gateway.influxdb.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class DeviceLogDto {
    private String deviceCode;
    private String msgType;
    private String msg;
    private String id;
    private String deviceId;

    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;
    private long timeStamp;
    private long seconds;
    private long nanoSeconds;
}
